package com.xbao.service.impl;

import com.xbao.dao.SpreadTemplateMapper;
import com.xbao.model.SpreadTemplate;
import com.xbao.model.SpreadTemplateExample;
import com.xbao.service.SpreadTemplateService;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.List;

public class SpreadTemplateServiceImpl implements SpreadTemplateService {
    @Autowired
    private SpreadTemplateMapper mapper;

    @Override
    public List<SpreadTemplate> queryList(SpreadTemplate template) {
        SpreadTemplateExample example=new SpreadTemplateExample();
        List<SpreadTemplate> templates=mapper.selectByExample(example);
        return templates;
    }
}
